#!/bin/sh

# 20230211 bkw: Very dumb/simple rc script for tetrinetx, part
# of the SBo build.

case "$1" in
  'start'|'')
    su - games -s /bin/sh -c /usr/games/tetrinetx
    ;;
  'stop')
    killall tetrinetx
    ;;
  'restart')
    $0 stop
    sleep 1
    exec $0 start
    ;;
  *) echo "usage: $0 start|stop|restart" ; exit 1 ;;
esac
